package com.link.base.base.report.dao.mybatis.mapper;

import com.link.base.base.report.model.*;
import com.link.base.base.report.model.*;

import java.util.List;

/**
 * @author l
 * @update 18.11.09
 */
public interface StoreReportMapper {

    /**
     * 统计一定时间内的采购、采购退货、销售、销售退货的数量和金额
     * @param entity
     * @return list
     * @throws Exception
     */
    public List<ProdSaleStore> queryStoreProdSale(ProdSaleStore entity) throws Exception;

    /**
     * 统计门店一定时间内各店员销售产品的数量和金额
     * @param entity
     * @return List
     * @throws Exception
     */
    public List<ProdSalemanSale> queryStoreSalemanProdSale(ProdSalemanSale entity) throws Exception;

    /**
     * 统计一定时间内门店产品的期初成品库存量、成品出库、成品入库、期末成品库存、期初破损库存、破损入库、破损出库、期末破埙库存
     * @param entity
     * @return list
     * @throws Exception
     */
    public List<StoreInvtxn> queryStoreInvTxn(StoreInvtxn entity) throws Exception;

    /**
     * 统计一定时间内门店的销售金额、各渠道付款金额（支付宝、微信、银联、现金）及开票金额
     * @param entity
     * @return list
     * @throws Exception
     */
    public List<StoreOrderPay> queryStoreOrderPay(StoreOrderPay entity) throws Exception;

    /**
     * 统计一定时间内门店开票记录信息
     * @param entity
     * @return list
     * @throws Exception
     */
    public List<StoreInvoice> queryStoreInvoice(StoreInvoice entity) throws Exception;

    /**
     * 统计门店当天的采购金额、销售金额、付款金额、开票金额
     * @param entity
     * @return list
     * @throws Exception
     */
    public List<StoreHomeAmount> queryStoreHomeAmount(StoreHomeAmount entity) throws Exception;

    /**
     * 门店-wifi设备人流量统计
     * @param entity
     * @return list
     * @throws Exception
     */
    public List<WifiNum> queryDayWifiNum(WifiNum entity) throws Exception;
}
